package edu.chl.jadetalk.view;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.validation.constraints.Size;

/**
 *
 * @author Erik
 */
@ManagedBean
@RequestScoped
public class CommentBackingBean {
    
    // TODO: Validate empty?
    @Size(min=1, message="Please enter a message.")
    private String text;
    private long entryId;
    
    public CommentBackingBean(){
        
    }

    public long getEntryId() {
        return entryId;
    }

    public void setEntryId(long entryId) {
        this.entryId = entryId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
